<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单管理</title>

	<link type="text/css" rel="stylesheet" href="../../../static/bootstrap/css/bootstrap-iso.css">
	<link rel="stylesheet" href="../../../static/css/foot123.css">
	<link rel="stylesheet" href="../../../static/css/top123.css">
	<link rel="stylesheet" href="../../../static/css/order_manager.css">
</head>
<body>
<div class="header">
	<%@include file="../common/manager_menu.jsp"%>
</div>
<div class="bootstrap-iso">
	<div class="row" style="height: 500px;background-color: #fff;overflow: auto;margin-bottom: 5px;margin-top: 5px;"
		 id="table123">
		<div class="col-md-12">
			<div class="table-responsive">
				<table class="table table-hover table-striped table-bordered" data-toggle="table">

					<tr>
						<td>日期</td>
						<td>订单号</td>
						<td>金额</td>
						<td>状态</td>
						<td>详情</td>
						<td>操作</td>
					</tr>
					<c:forEach items="${requestScope.orders}" var="orders">
						<tr>
							<td>${orders.createTime}</td>
							<td>${orders.orderId}</td>
							<td>${orders.price}</td>
							<td><a href="${pageContext.request.contextPath}/manager123/checkorder/${orders.orderId}">查看详情</a></td>
							<c:if test="${orders.status==0}">
								<td>未配送</td>
							</c:if>
							<c:if test="${orders.status==1}">
								<td>已配送</td>
							</c:if>
							<c:if test="${orders.status==2}">
								<td>已完成</td>
							</c:if>
							<c:if test="${orders.status==0}">
								<td><a  href="${pageContext.request.contextPath}/manager123/sendOrder/${orders.orderId}">点击发货</a></td>
							</c:if>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	</div>
</div>



</body>
</html>